package org.javaongems.client.tool;

import org.javaongems.client.stdctrls.Button;
import org.javaongems.client.vcl.Container;
import org.javaongems.client.vcl.GemsAssembler;

public class TestPanel extends Container {
 	final static private String GEMS_CONTAINER_DESC = "[\"textPanel\",{\"children\":2.0},{},[\"btn1\",{},{\"caption\":\"Hello World\"}],[\"btn2\",{\"top-left\":\"0,80\"},{\"caption\":\"Ashin & Juls\"}]]";
 	Button btn1 = new Button();
	Button btn2 = new Button();

	public TestPanel() {
		gemsInit();
	}
	
	private void gemsInit() {
	 	GemsAssembler jeweler = new GemsAssembler(GEMS_CONTAINER_DESC, this);
	 	jeweler.add("btn1", btn1);
	 	jeweler.add("btn2", btn2);
	 	jeweler.realise();
	}
}
